package net.idugic.dto;

import java.io.Serializable;

public class QueryAnswerOptionDTO implements Serializable {

	private static final long serialVersionUID = -2958588476592068062L;

	private Integer id = null;

	private Integer query = null;

	private Integer ordinal_no = null;

	private String answer_text = null;

	private Integer count = null;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getQuery() {
		return query;
	}

	public void setQuery(Integer query) {
		this.query = query;
	}

	public Integer getOrdinal_no() {
		return ordinal_no;
	}

	public void setOrdinal_no(Integer ordinal_no) {
		this.ordinal_no = ordinal_no;
	}

	public String getAnswer_text() {
		return answer_text;
	}

	public void setAnswer_text(String answer_text) {
		this.answer_text = answer_text;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final QueryAnswerOptionDTO other = (QueryAnswerOptionDTO) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

}
